export function parseJWT<T = { exp: number; iat: number }>(token: string) {
  return JSON.parse(atob(token.split('.')[1])) as T
}
